//
//  DJBannerTableViewCell.m
//  CoolFM
//
//  Created by 曹曹 on 16/8/31.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "DJBannerTableViewCell.h"
#import "Banners.h"
#import "UIImageView+WebCache.h"

@interface DJBannerTableViewCell ()

@end

@implementation DJBannerTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setBanners:(NSArray<Banners *> *)banners {
    _banners = banners;
    NSMutableArray *images = [NSMutableArray array];
    for (Banners *banner in _banners) {
        [images addObject:banner.banner_image_url];
    }
    _cycleView.imagesArray = images;
    _cycleView.placeholder = @"tts-navbar";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
